package com.ztgf.commodity.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * author: chenyu.wang
 * date: 2020-06-09 17:42
 * Description: 卖家个人中心商品库存管理VO
 */
@Data
public class CommodityInventoryVO implements Serializable {

    @ApiModelProperty(value = "商品id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long commodityId;

    @ApiModelProperty(value = "商品规格属性id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long commodityAttrId;

    @ApiModelProperty(value = "商品编号")
    private String commodityNumber;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty(value = "商品库存")
    private Integer inventoryNumber;

    @ApiModelProperty(value = "原价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "是否询价，0否，1是")
    private Integer isInquiry;

    @ApiModelProperty(value = "规格/套餐名称")
    private String atrrName;
}
